<template>
  <VButton btnName="add" :btnFunc="btnFunc"/>
  <br>
  {{ num }}
</template>

<script setup lang='ts'>
import {ref} from "vue"
import comptecounter from "../../../comptecounter/index"

const num = ref<Number>(0)
const btnFunc = () => {
  num.value = comptecounter.add(num.value, 1)
}
</script>

<style lang='scss' scoped>
</style>